Motion.PowerAxis 方法
啟用或停用軸的運作。
命名空間:IntervalZero.KINGSTAR.Local.Api
組合: IntervalZero.KINGSTAR.Local.Api (於 IntervalZero.KINGSTAR.Local.dll) 版本:4.4.0.0
語法
public KsCommandStatus PowerAxis(
int Index,
bool Enable,
bool EnablePositiveDirection,
bool EnableNegativeDirection
)
Public Function PowerAxis(
Index As Integer,
Enable As Boolean,
EnablePositiveDirection As Boolean,
EnableNegativeDirection As Boolean
) As KsCommandStatus
參數
Index [in]
型別:int
軸索引。索引以 0 為起始;別名將影響此參數。
Enable [in]
型別:bool
true:啟用軸;false:停用軸。
EnablePositiveDirection [in]
型別:bool
true:使軸朝正方向移動。
EnableNegativeDirection [in]
型別:bool
true:使軸朝負方向移動。
回傳值
回傳 KsCommandStatus 類別。
備註
此函式可用來啟動或停止伺服馬達並防止軸超程。
範例
N/A
參見